#include<iostream>
using namespace std;
struct DataType {
	int acctNum;
	float balance;
	int getKey()const { return acctNum; }
};
#include"ordlist.cpp"
const int maxNameLength=15;
void main(){
	OrdList accounts;
	DataType acct;
	cout << endl << "Enter account information (EOF to end): " << endl;
	while(cin >> acct.acctNum>>acct.balance)
		accounts.insert(acct);
	cout << endl;
	if (!accounts.isEmpty())
	{
		accounts.gotoBeginning();
		do
		{
			acct = accounts.getCursor();
			cout << "Account: " << acct.acctNum << " Balance: " << acct.balance << endl;
		} while (accounts.gotoNext());
	}
}